﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace FutureDBDecompositionTools.UI
{
    class UIManage
    {
        private UIManage() { }

        private static UIManage uiManage = null;

        public static UIManage GetInstance()
        {
            if (uiManage == null)
            {
                uiManage = new UIManage();
            }
            return uiManage;
        }

        private FormMain formmain;

        public FormMain Formmain
        {
            get {
                if (formmain == null)
                {
                    formmain = new FormMain();
                }
                return formmain; 
            }
            set { formmain = value; }
        }

        private FormTree formtree;

        public FormTree Formtree
        {
            get {
                if (formtree == null)
                {
                    formtree = new FormTree();
                }
                return formtree;
            }
            set { formtree = value; }
        }
        private UI.FormManageDecompositionOrders formmanagedecompositionorders;

        public UI.FormManageDecompositionOrders Formmanagedecompositionorders
        {
            get {
                if (formmanagedecompositionorders == null)
                {
                    formmanagedecompositionorders = new FormManageDecompositionOrders(formmain);
                }
                return formmanagedecompositionorders; 
            }
            set { formmanagedecompositionorders = value; }
        }

        private FormConfig formconfig;

        public FormConfig Formconfig
        {
            get {
                if (formconfig == null)
                {
                    formconfig = new FormConfig();
                }
                return formconfig;
            }
            set { formconfig = value; }
        }


    }
}
